//
//  IconCell.m
//  XProgress
//
//  Created by Ondrej Rafaj on 20.8.09.
//  Copyright 2009 Home. All rights reserved.
//

#import "IconCell.h"


@implementation IconCell

@synthesize cellTitle;
@synthesize cellDescription;
@synthesize cellDate;

@synthesize imageView;
@synthesize viewForBackground;

- (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithFrame:frame reuseIdentifier:reuseIdentifier]) {
        // Initialization code
    }
    return self;
}

-(void) loadRemotePicture:(NSString *) url {
	
	NSString* mapURL = [url stringByReplacingPercentEscapesUsingEncoding:NSASCIIStringEncoding];
	NSData* imageData = [[NSData alloc]initWithContentsOfURL:[NSURL URLWithString:mapURL]];
	UIImage* image = [[UIImage alloc] initWithData:imageData];
	[imageView setImage:image];
	[imageData release];
	[image release];
	
}	


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {

    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)dealloc {
    [super dealloc];
}


@end
